From: Florian Müllner Date: Fri, 12 Jul 2019 03:26:51 +0000 (+0000) Subject: workspacesView: Work around spurious allocation changes X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~845^2^2~49 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6cc19ee6f05102baef39b8a1bec73eff06699879;p=gnome-shell.git workspacesView: Work around spurious allocation changes For some reason, people are still seeing those after commit d5ebd8c8. While this is something we really should figure out, we can work around the issue by keeping the view actors hidden until the update is complete. https://gitlab.gnome.org/GNOME/gnome-shell/issues/1065 --- diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index 7aa976ef3..1cae5761d 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -638,10 +638,15 @@ var WorkspacesDisplay = class { this._scrollValueChanged.bind(this)); } + // HACK: Avoid spurious allocation changes while updating views + view.actor.hide(); + this._workspacesViews.push(view); Main.layoutManager.overviewGroup.add_actor(view.actor); } + this._workspacesViews.forEach(v => v.actor.show()); + this._updateWorkspacesFullGeometry(); this._updateWorkspacesActualGeometry(); }